/*
 *  Copyright (c)  2016-NOW  Jacars Co.Ltd.
 *  All rights reserved.
 */
package com.jacars.biz.user.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jacars.biz.user.dao.service.JsptDeptService;
import com.jacars.biz.user.service.DeptService;
import com.jacars.biz.user.vo.JsptDeptVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务实现类
 *
 * @author Chill
 */
@Service
public class DeptServiceImpl implements DeptService {

	private final JsptDeptService jsptDeptService;

	public DeptServiceImpl(JsptDeptService jsptDeptService) {
		this.jsptDeptService = jsptDeptService;
	}

	@Override
	public IPage<JsptDeptVO> selectDeptPage(IPage<JsptDeptVO> page, JsptDeptVO dept) {
		return jsptDeptService.selectDeptPage(page, dept);
	}

	@Override
	public List<JsptDeptVO> tree(String tenantId) {
		return jsptDeptService.tree(tenantId);
	}

	@Override
	public String getDeptIds(String tenantId, String deptNames) {
		return jsptDeptService.getDeptIds(tenantId, deptNames);
	}

	@Override
	public List<String> getDeptNames(String deptIds) {
		return jsptDeptService.getDeptNames(deptIds);
	}

}
